package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.Date;

public class OrderCouponDetailPo {
    /**
     * id BIGINT(19) 必填<br>
     * 主键子增id
     */
    private Long id;

    /**
     * main_order_id BIGINT(19) 必填<br>
     * 主单id
     */
    private Long mainOrderId;

    /**
     * order_id BIGINT(19) 必填<br>
     * 订单id
     */
    private Long orderId;

    /**
     * coupon_code VARCHAR(50) 默认值[] 必填<br>
     * 优惠券code
     */
    private String couponCode;

    /**
     * coupon_type INTEGER(10) 必填<br>
     * 优惠券类型
     */
    private Integer couponType;

    /**
     * coupon_source INTEGER(10) 必填<br>
     * 优惠券来源
     */
    private Integer couponSource;

    /**
     * amount DECIMAL(18,2) 必填<br>
     * 优惠金额
     */
    private BigDecimal amount;

    /**
     * deleted BIT(1) 必填<br>
     * 是否已删除
     */
    private Boolean deleted;

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 添加时间
     */
    private Date addTime;

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 修改时间
     */
    private Date updateTime;

    /**
     * id BIGINT(19) 必填<br>
     * 获得 主键子增id
     */
    public Long getId() {
        return id;
    }

    /**
     * id BIGINT(19) 必填<br>
     * 设置 主键子增id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * main_order_id BIGINT(19) 必填<br>
     * 获得 主单id
     */
    public Long getMainOrderId() {
        return mainOrderId;
    }

    /**
     * main_order_id BIGINT(19) 必填<br>
     * 设置 主单id
     */
    public void setMainOrderId(Long mainOrderId) {
        this.mainOrderId = mainOrderId;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 获得 订单id
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * order_id BIGINT(19) 必填<br>
     * 设置 订单id
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * coupon_code VARCHAR(50) 默认值[] 必填<br>
     * 获得 优惠券code
     */
    public String getCouponCode() {
        return couponCode;
    }

    /**
     * coupon_code VARCHAR(50) 默认值[] 必填<br>
     * 设置 优惠券code
     */
    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode == null ? null : couponCode.trim();
    }

    /**
     * coupon_type INTEGER(10) 必填<br>
     * 获得 优惠券类型
     */
    public Integer getCouponType() {
        return couponType;
    }

    /**
     * coupon_type INTEGER(10) 必填<br>
     * 设置 优惠券类型
     */
    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    /**
     * coupon_source INTEGER(10) 必填<br>
     * 获得 优惠券来源
     */
    public Integer getCouponSource() {
        return couponSource;
    }

    /**
     * coupon_source INTEGER(10) 必填<br>
     * 设置 优惠券来源
     */
    public void setCouponSource(Integer couponSource) {
        this.couponSource = couponSource;
    }

    /**
     * amount DECIMAL(18,2) 必填<br>
     * 获得 优惠金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * amount DECIMAL(18,2) 必填<br>
     * 设置 优惠金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * deleted BIT(1) 必填<br>
     * 获得 是否已删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * deleted BIT(1) 必填<br>
     * 设置 是否已删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 获得 添加时间
     */
    public Date getAddTime() {
        return addTime;
    }

    /**
     * add_time TIMESTAMP(19) 必填<br>
     * 设置 添加时间
     */
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 获得 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * update_time TIMESTAMP(19) 必填<br>
     * 设置 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mainOrderId=").append(mainOrderId);
        sb.append(", orderId=").append(orderId);
        sb.append(", couponCode=").append(couponCode);
        sb.append(", couponType=").append(couponType);
        sb.append(", couponSource=").append(couponSource);
        sb.append(", amount=").append(amount);
        sb.append(", deleted=").append(deleted);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}